package com.sc.VenusQueryBeta.contract.account.xiugai;


import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *  修改密码明细Contract(契约)接口
 *  账户中的密码修改
 */
public interface XiuGaiContract {
    abstract class XiuGaiPresenter extends BasePresenter<IXiuGaiModel,IXiuGaiView> {
        //修改用户密码
        public abstract void userchangepwd(int clientindex,String oldPassword,String newPassword,String serverAddress, String projectName, int serverPort);
}
    interface IXiuGaiModel extends IBaseModel {
        //修改用户密码
        Observable<String> userchangepwd(int clientindex, String oldPassword, String newPassword, String serverAddress, String projectName, int serverPort);
    }
    interface IXiuGaiView extends IBaseActivity {
        //修改用户密码
        void showNetworkError(Throwable throwable);
        void userchangepwd(String userChangePwdBean);
    }
}
